﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PurchaseManager
{
    public class Company
    {
        public Company()
        {
        }

        public Company(int id, string name, string address, string phoneNumber, string memo)
        {
            Id = id;
            Name = name;
            Address = address;
            Memo = memo;
            PhoneNumber = phoneNumber;
        }

        public bool Compare(Company compareItem)
        {
            if (compareItem.Name == this.Name && compareItem.Address == this.Address 
                && compareItem.Memo == this.Memo && compareItem.PhoneNumber == this.PhoneNumber
                )
                return true;

            return false;
        }

        public int Id { get; set; }             // 사입처 ID
        public string Name { get; set; }        // 사입처 이름
        public string Address { get; set; }     // 사입처 위치, 홈페이지
        public string PhoneNumber { get; set; } // 사입처 연락처
        public string Memo { get; set; }        // 메모
    }
}
